package com.ujiuy.springsessiondemo.Thymeleaf;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class Demo1 {

    @GetMapping("/first")
    public String first(Model model){
        model.addAttribute("hello","helloWorld");
        return "index1";
    }
}
